import fetch from '@/utils/request'

/**
 * 短信验证码API对象
 * @module Verify
 */
const Verify = {
	/**
	 * @function login
	 * @description 获取短信验证码
	 * @param  {Object} verify 验证对象 {phone: 电话,	captcha: 图形验证码}
	 * @param  {String} token token
	 */
	login: (verify, token) => fetch.request({
		url: '/api/user/verify/login',
		method: 'POST',
		data: {
			verify: verify,
			captcha_code_key: token
		}
	}),
}
export default Verify